-- GENERATED SPELL FOR [Shandaral Druid Spirit] --


function spell0_30863(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(15798,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30863', 12000, 1)
end

function spell1_30863(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(16561,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30863', 23000, 1)
end

function Sorts_30863(pUnit, Event)
local choix_sorts_30863 = math.random(0, 1)
if choix_sorts_30863 == 0 then
pUnit:RegisterEvent('spell0_30863', 1, 1)
end
if choix_sorts_30863 == 1 then
pUnit:RegisterEvent('spell1_30863', 1, 1)
end
end

function mob30863_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30863', math.random(1500, 3000), 1)
end

function mob30863_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30863_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30863_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30863, 1, 'mob30863_Action')
RegisterUnitEvent(30863, 2, 'mob30863_Leave')
RegisterUnitEvent(30863, 3, 'mob30863_Kill')
RegisterUnitEvent(30863, 4, 'mob30863_Die')
